package com.sservice.model.dao;

import com.sservice.model.entity.Address;

import java.util.List;

public interface IAddressDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Address record);

    int insertSelective(Address record);

    Address selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Address record);

    int updateByPrimaryKey(Address record);

    /***
     * 根据ownid 更改
     * @param record
     * @return
     */
    int updateByOwnIdSelective(Address record);

    /***
     * 条件查询
     * @param record
     * @return
     */
    List<Address> select(Address record);
}